package com.yingyi.org.mapper;

import com.yingyi.basic.mapper.BaseMapper;
import com.yingyi.org.domain.Employee;
import com.yingyi.system.domain.Menu;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> queryByShopId(Long id);

    Employee queryByLogininfoId(Long id);

    void insertEmployeeRole(Employee employee);

    void updateEmployeeRole(Employee employee);

    void deleteEmployeeRole(Long id);

    List<String> getPermissionsByLogininfoId(Long id);

    List<Menu> getMenusByLogininfoId(Long id);

/*
    Employee queryById(Long id);

    List<Employee> queryAll();

    void insert(Employee dept);

    void update(Employee dept);

    void delete(Long id);

    */
/**
     * 分页：查询当前页数据
     * @param query
     * @return
     *//*

    List<Employee> queryData(EmployeeQuery query);

    */
/**
     * 分页：条件查询结果总数量
     * @param query
     * @return
     *//*

    Long queryCount(EmployeeQuery query);

    */
/**
     * 批量删除
     * @param ids
     *//*

    void patchDelete(List<Long> ids);
*/
}
